package com.example.aicooking.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.aicooking.entity.User;
import com.example.aicooking.entity.dto.UserUpdateDTO;
import com.example.aicooking.entity.vo.UserBasicVO;
import com.example.aicooking.entity.vo.UserDetailVO;

public interface UserService extends IService<User> {
    // 注册
    boolean register(User user);
    
    // 登录
    User login(String username, String password);

    //个人中心
    UserBasicVO getBasicInfo(Integer userId);
    //个人信息页面
    UserDetailVO getDetailInfo(Long userId);
    //修改个人信息
    boolean updateUserInfo(UserUpdateDTO updateDTO);

    boolean checkUserIdExists(int userId);
}